package Demo.demo16;

public class Computer {
    String computerName;
  public int showComputerFist() {

      int computerFist= (int)(Math.random()*3)+1;
      switch(computerFist){
              case 1:
                  System.out.println("电脑出拳：剪刀" );
                  break;
              case 2:
                  System.out.println("电脑出拳：石头" );
                  break;
              case 3:
                  System.out.println("电脑出拳：布" );
                  break;
      }
      return computerFist;
  }
}
